<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</meta>
<title>F.encode演示</title>
<style type="text/css">
*{margin:0; padding:0;}
html,body{width:100%; height:100%;}
</style>
<script type="text/javascript" src="../../1st.js"></script>
</head>
<body>
<textarea id="text" style="width:98%;height:80%;">a测试用中文字符b</textarea>
<button onclick="otext.value=F.encode(otext.value);">汉字编码</button>　
<button onclick="otext.value=F.decode(otext.value);">汉字解码</button>

<script type="text/javascript">
var otext = F('text').node;
</script>
</body>
</html>